package com.supply.service;

import com.supply.pojo.Permission;
import com.supply.pojo.RolePermission;
import com.supply.req.PermissionReq;

import java.util.List;

public interface PermissionService {
    List<Permission> queryByCondition(PermissionReq permissionReq);

    int saveOrUpdate(Permission permission);

    int deleteById(Long id);

    List<Permission> queryAll();

    //根据角色Id获取角色与权限的关联表信息
    List<RolePermission> queryRoleAndPermissionByRoleId(Long id);

    //根据角色Id获取权限列表
    List<Permission> queryByRoleId(Long id);
}
